package com.example.blog_system.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Created with IntelliJ IDEA.
 * Description: 用户实体类
 */
@Data
public class UserInfo implements Serializable {
    //整形用Integer 兼容性更好
    private String email;
    private Integer id;
    private String username;
    private String password;
    private String photo;
    //    private String createtime;
//    private String updatetime;
    // 日期格式 用LocalDateTime 传给前端 是时间戳 还需要转换
    private LocalDateTime createtime;

    private LocalDateTime updatetime;
    private Integer blogCount;
    private Integer liked;
    private Integer state;
}
